<?php
$process = new \Swoole\Process(function () {
    sleep(2);
    echo '你好1111'. PHP_EOL;
});
$process->start();
$pro2 = new Swoole\Process(function () {
    sleep(3);
    echo '我是第二个进程'. PHP_EOL;
});
$pro2->start();


Swoole\Process::signal(SIGCHLD, function ($sig) {
    //必须为false，非阻塞模式
    while ($ret = Swoole\Process::wait(false)) {
        echo "555555555555";
    }
});
